package com.mls.fivedistrict.pojo;

import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author Five Team
 * @since 2018-07-03
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_integral_price", resultMap = "BaseResultMap")
public class IntegralPrice extends Model<IntegralPrice> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 积分ID
     */
    @NotNull(message = "积分ID不能为空")
    private Long integralId;
    /**
     * 国盾积分ID
     */
    private Long gIntegralId;
    /**
     * 价格
     */
    private BigDecimal price;
    private Date createDate;
    private Date updateDate;
    @TableLogic
    private Boolean isDelete;

    public Long getgIntegralId() {
        return gIntegralId;
    }

    public void setgIntegralId(Long gIntegralId) {
        this.gIntegralId = gIntegralId;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
